package com.atguigu.spzx.manager.controller;

import com.atguigu.spyx.model.common.Result;
import com.atguigu.spzx.manager.service.OrderInfoService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author LT
 * @create 2023-11-12-18:54
 */
@RestController
@RequestMapping("/admin/order/orderInfo")
public class OrderInfoController {
    @Resource
    OrderInfoService orderInfoService;

    @GetMapping("/findOrderStatistics")
    public Result findOrderStatistics(String begin,String end){
        Map<String,Object> map = orderInfoService.findOrderStatistics(begin,end);
        return Result.ok().data(map);
    }
}
